package com.heaven1949.tmall.gateway.controller;

import com.gbs.saas.gateway.infra.routecfg.model.dataobject.response.RouteCfgDO;
import com.gbs.saas.gateway.infra.routecfg.model.dataobject.response.RouteInfoDO;

import java.util.List;

/**
 * 动态路由处理
 * @author liwanhu
 *
 */
public interface DynamicRouteService {
	
	/**
	 * 更新路由信息
	 * @param dto
	 */
	public void addRouteInfo(RouteInfoDO dto);
	
	public void updateRouteInfo(RouteInfoDO dto);
	
	public RouteInfoDO getRouteInfo(String routeId);
	
	public void deleteRouteInfo(String routeId);
	
	public List<RouteInfoDO> queryRouteList();
	
	public List<RouteInfoDO> queryAllRoute();
	
	public void refreshRouteCfgs(List<RouteCfgDO> cfgList);

}
